import React, { useEffect } from 'react';
import TabBar from './components/tabBar'
import List from './components/list'
import { useLocation } from 'react-router';

const Home = () => {
    const { pathname } = useLocation();
    useEffect(() => {
        window.scrollTo(0, 0);
    }, [pathname])
    return (
        <>
            <TabBar />
            <List />
        </>
    );
};

export default Home;